package com.dongyun.loraweb;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Bean;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableJpaRepositories(basePackages = "com.dongyun.loraweb.dao")
@EntityScan(basePackages = "com.dongyun.loraweb.entity")
@EnableSwagger2
public class LoraWebStart {
	public static void main(String[] args) {
		SpringApplication.run(LoraWebStart.class, args);
	}
	@Bean
	public StartupRunner getStartupRunner(){
		return new StartupRunner();
	}
}
